WPForms\Integrations\Square\Process D

Total Complexity 153
Dependencies 7
Dependents 1
Total lines 1,299
Lines of code 539
Logical lines of code 300
Comment lines 514
Methods 40
Properties 13

Methods 40

Method Rating Maintainability Complexity Lines of code
get_payment_args_subscription()
A
50 9 24
is_recurring_settings_ok()
A
56 9 17
display_errors()
S
59 7 14
prepare_payment_meta()
S
51 6 25
prepare_payment_data()
S
51 6 25
get_payment_args_single()
S
53 6 21
get_order_items()
S
55 6 20
get_customer_name()
S
58 6 17
process_payment_saved()
S
52 5 27
is_form_ok()
S
52 5 27
update_entry_meta()
S
55 5 20
process_api_errors()
S
56 5 18
get_payment_title()
S
58 5 16
is_card_field_visibility_ok()
S
60 5 15
get_credit_card_field()
S
63 5 11
process_entry()
S
53 4 23
process_payment_subscription()
S
53 4 23
update_credit_card_field_value()
S
54 4 21
prepare_order_line_item_variations()
S
56 4 16
get_form_name()
S
58 4 15
is_amount_ok()
S
62 5 10
process_api_errors_codes()
S
60 4 14
prepare_order_line_item()
S
58 4 14
get_card_holder()
S
64 4 10
get_card()
S
66 3 8
is_form_processed()
S
66 3 9
get_amount()
S
74 2 4
is_subscription_plan_valid()
S
78 2 3
process_payment()
S
69 2 7
is_connection_ok()
S
79 2 3
bypass_captcha()
S
72 2 6
get_customer_email()
S
77 2 3
get_payment_args_general()
S
63 1 11
hooks()
S
65 1 8
get_currency()
S
80 1 3
get_oauth_error_codes()
S
79 1 3
log_errors()
S
65 1 10
process_payment_single()
S
71 1 6
format_payment_log()
S
68 1 8
init()
S
77 1 4